getString

Return a localized string from the application's package's default string table.

Parameters

resId

Resource id for the string


fun getString(@StringRes resId: Int, @Nullable formatArgs: Array<Any>): String(source)

Return a localized formatted string from the application's package's default string table, substituting the format arguments as defined in java.util.Formatter and format.

Parameters

resId

Resource id for the format string

formatArgs

The format arguments that will be used for substitution.